import bread from "./plugins/breadcrumb"
import {Message} from "element-ui"
import scrollPlugin from "./plugins/scroll"
export {bread,scrollPlugin}
export default {  
  mg(n,d){ 
    let t= n==="error"
    let nal= { 
     message: t ? d||'添加失败':d ||  '添加成功'
     ,center:"center"
     ,duration:1000
     }
     if(n!==null){
      nal.type= t?'error': 'success' 
     }
    Message(nal)
}}